package main

import (
	"fmt"
	"math/rand"
	"time"
)

func main() {
	var a int

	makeData(&a)
	fmt.Println(a)
}


func makeData(i *int) {
	rand.Seed(time.Now().UnixNano())
	j := 0
	for true {
		j = rand.Intn(10000)
		if j >= 1000 && j <= 9999 {
			*i = j
			break
		}
	}
}
